#include <iostream>
#include <OgreFrameListener.h>
#include <OIS/OIS.h>

#include "ZombieSwarm.h"

class MyFrameListener : public Ogre::FrameListener {

private:

  ZombieSwarm* _pZombieSwarm;
  Human* _pHuman;
  ProximityDatabase* _pd;

  Ogre::SceneManager* _sceneManager;
  OIS::InputManager* _inputManager;
  OIS::Keyboard* _keyboard;
  Ogre::Camera* _camera;

public:

  MyFrameListener(Ogre::RenderWindow*, Ogre::Camera*, Ogre::SceneManager*);

  ~MyFrameListener();

  /// Métodos similares a los de OpenSteer
  void open();
  void update(const float, const float);
  void redraw(const float, const float);
  void close();
  void reset();

  bool frameStarted(const Ogre::FrameEvent& evt);

};
